home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 551-575 / disk_551 / toolmanager / source / data.c < prev    next >
C/C++ Source or Header  |  1992-05-06  |  3KB  |  97 lines

  1. /*
  2.  * data.c   V1.5
  3.  *
  4.  * global data
  5.  *
  6.  * (c) 1991 by Stefan Becker
  7.  *
  8.  */
  9. #include "ToolManager.h"
  10.  
  11. /* Version string */
  12. char MyIdent[]="$VER: " DEFPROGNAME " " TM_VERSION " (" TM_DATE ")";
  13.  
  14. /* Structures for icon */
  15. static __chip UWORD ImageData[]={ /* Graphic data (48x48 Pixels) */
  16.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  17.  0x0000,0x7ffE,0x0000,0x0000,0x7ffE,0x0000,0x0000,0x7ffE,0x0000,
  18.  0x0000,0x7ffE,0x0000,0x0000,0x7ffE,0x0000,0x0000,0x7ffE,0x0000,
  19.  0x3fff,0xffff,0xfffC,0x3fff,0xffff,0xfffC,0x3fff,0xffff,0xfffC,
  20.  0x3fff,0xffff,0xfffC,0x3fff,0xffff,0xfffC,0x3fff,0xffff,0xfffC,
  21.  0x0000,0x7ffE,0x0000,0x0000,0x7ffE,0x0000,0x0000,0x7ffE,0x0000,
  22.  0x0000,0x7ffE,0x0000,0x0000,0x7ffE,0x0000,0x0000,0x7ffE,0x0000,
  23.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000};
  24. static struct Image MyIconImage={NULL,NULL,48,24,1,ImageData,1,0,NULL};
  25. static struct DiskObject InternalIcon={NULL,NULL,
  26.                /* Gadget definition */ {NULL,NULL,NULL,48,25,NULL,NULL,NULL,
  27.                                         &MyIconImage,NULL,NULL,NULL,NULL,NULL,
  28.                                         NULL},
  29.                                        NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL};
  30. struct DiskObject *MyIcon=&InternalIcon;
  31. LONG IconXPos=NO_ICON_POSITION;
  32. LONG IconYPos=NO_ICON_POSITION;
  33. BOOL ShowIcon=TRUE;
  34. char *IconName=NULL;
  35. struct AppIcon *MyAppIcon=NULL;
  36. struct AppMenuItem *OTWAppMenuItem=NULL;
  37.  
  38. /* Global startup currentdir */
  39. BPTR StartupCD;
  40.  
  41. /* Global quit flag */
  42. BOOL ShowQuitReq=TRUE; /* Show Requester if user tries to quit */
  43. BOOL running=TRUE;
  44.  
  45. /* Structures for message port */
  46. struct MsgPort *MyMP;
  47.  
  48. /* List for ToolNodes */
  49. struct List ToolList; /* This list contains ToolNodes */
  50. UWORD ToolCount=0;    /* Number of tools in ToolList */
  51. ULONG wbactive=0;     /* Active WB tools */
  52.  
  53. /* Copyright note for banner & commodities */
  54. UBYTE CopyrightNote[]="ToolManager V" TM_VERSION ", © " TM_CRYEAR " Stefan Becker";
  55.  
  56. /* Name of the message port & icon */
  57. char MyName[]=DEFPROGNAME;
  58.  
  59. /* Configuration file stuff */
  60. char InternalConfigName[]=DEFCONFIGNAME;
  61. char *ConfigName=NULL;
  62. BOOL ConfigChanged=FALSE;
  63.  
  64. /* Name of Workbench screen */
  65. char WBScreenName[]="Workbench";
  66.  
  67. /* Structures for windows */
  68. struct NewWindow nw={20,20,640,256,0,1,IDCMP_CLOSEWINDOW|IDCMP_REFRESHWINDOW|
  69.                      IDCMP_GADGETUP|IDCMP_GADGETDOWN|IDCMP_MOUSEMOVE|
  70.                      IDCMP_MOUSEBUTTONS|
  71.                      IDCMP_MENUPICK|IDCMP_INTUITICKS,WFLG_DRAGBAR|
  72.                      WFLG_DEPTHGADGET|WFLG_CLOSEGADGET|WFLG_SIMPLE_REFRESH|
  73.                      WFLG_ACTIVATE,NULL,NULL,NULL,NULL,NULL,0,0,0,0,0};
  74. BOOL ShowStatusWindow=FALSE;
  75. UWORD DockCount=0;
  76. BOOL ShowDock=FALSE;
  77. ULONG globalsigs=0;
  78. ULONG statwinsig=0;
  79. ULONG editwinsig=0;
  80. ULONG hkeywinsig=0;
  81. ULONG dockwinsig=0;
  82.  
  83. /* Structures for commodities stuff */
  84. struct NewBroker nb={NB_VERSION,MyName,CopyrightNote,
  85.                      "Add programs to the WB Tools menu",
  86.                      NBU_UNIQUE,COF_SHOW_HIDE,0,NULL,0};
  87. struct MsgPort *MyBrokerPort;
  88. struct Broker *MyBroker;
  89. char DefaultPopUpHotKey[]=DEFPOPUPHOTKEY;
  90. char *PopUpHotKey=NULL;
  91.  
  92. /* Data for CLI tools */
  93. char DefaultCLIOutputFile[]=
  94.  "CON:0/0/640/150/" DEFPROGNAME " CLI Tool Output/INACTIVE/AUTO/WAIT/ALT";
  95. char *CLIOutputFile=NULL;
  96. char *GlobalPath=NULL;
  97.